package pe.gob.mef.snip.preinversion.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import pe.gob.mef.snip.preinversion.dao.mybatis.CausaMapperDAO;
import pe.gob.mef.snip.preinversion.domain.Causa;
import pe.gob.mef.snip.preinversion.service.CausaService;

@Service
public class CausaServiceImpl implements CausaService{
	
	@Autowired
	private CausaMapperDAO causaMapperDAO;
	
	public void insertar(Causa causa) {
		causaMapperDAO.insertar(causa);

	}

	public void actualizar(Causa causa) {
		causaMapperDAO.actualizar(causa);
	}

	public void eliminar(Causa causa) {
		causaMapperDAO.eliminar(causa);
		
	}
	
	public Causa obtener(Causa causa) {
		 return causaMapperDAO.obtener(causa);
		
	}

	public List<Causa> listar(Causa causa) {
		 return causaMapperDAO.listar(causa);
	}
}
